<!--
 * @Author: your name
 * @Date: 2021-02-05 10:24:09
 * @LastEditTime: 2022-01-07 16:36:10
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \cloudServiceStatic\src\components\DatePick\DatePick.vue
-->
<template>
  <div>
    <a-range-picker size="large" :value="value" @change="onChange" :defaultValue="null"   :disabledDate="isDisabled?(current) => {return current < _moment().subtract(1, 'day')}:(current)=>{return false}"     />
  </div>
</template>

<script>
import {dateFormatProcessing,timeFormatProcessing } from '@/utils/common.js'
export default {
  model: {
      prop: 'value',
      event: 'input',
  },
  props: {
    value: {
      type: null,
      
    },
    isDisabled:{
      type:Boolean,
      default:true
    }
  },

  data () {
    return {
      dateData: this.date
    }
  },
  methods:{
    onChange(val){
      this.$emit('input',timeFormatProcessing(val))
      this.$emit('changeDate',timeFormatProcessing(val))
     
    }
  }
}
</script>

<style></style>
